package com.edu.text;

import com.edu.dao.UserDao;
import com.edu.dao.VehiclesDao;
import com.edu.dao.impl.UserDaoImlp;
import com.edu.dao.impl.VehiclesDaoImpl;
import com.edu.entity.User;
import com.edu.service.CommentService;
import com.edu.service.RentalsService;
import com.edu.service.UserService;
import com.edu.service.VehiclesService;
import com.edu.service.imlp.CommentServiceImpl;
import com.edu.service.imlp.RentalsServiceImpl;
import com.edu.service.imlp.UserServiceImpl;
import com.edu.service.imlp.VehiclesServiceImpl;

public class Text {
    public static void main(String[] args) {
        VehiclesService vehiclesService = new VehiclesServiceImpl();
        RentalsService rentalsService = new RentalsServiceImpl();
        UserService userService = new UserServiceImpl();
//        System.out.println(vehiclesDao.queryByTypeCount("SUV"));
//        System.out.println(userDao.getByID(1));

        /*User u = new User();
        u.setUsername("user1");
        u.setPassword("password1");
        u.setName("张三");
        u.setEmail("zhangsan@example.com");
        u.setPhone("'12345678901'");
        u.setId(1);
        System.out.println(userDao.updateUser(u));*/
        System.out.println(rentalsService.addRental(1,1,3,300));
//        System.out.println(userService.queryByusernameUser("user2"));
        CommentService commentService = new CommentServiceImpl();
        System.out.println(commentService.querCommentByCarId(1));
    }

}
